<template>
  <QuestionWrap v-bind="$attrs">
    <template #answer="{ options }">
      <a-checkbox-group v-model:value="checked">
        <a-checkbox
          v-for="(o, i) in options ? options.split('/') : []"
          :key="i"
          :value="o.slice(0, 1)"
          >{{ o }}</a-checkbox
        >
      </a-checkbox-group>
    </template>
  </QuestionWrap>
</template>

<script setup lang="ts">
import QuestionWrap from './QuestionWrap.vue';

const checked = defineModel('checked', {
  default: [],
});
</script>
